package com.example.demo.multiThread.runnableDemo;

public class MyRunnable implements Runnable {
    @Override
    public void run() {
        // 线程执行的逻辑
        System.out.println("线程 " + Thread.currentThread().getName() + " 正在运行...");
        for (int i = 0; i < 10; i++) {
            System.out.println("线程 " + Thread.currentThread().getName() + " 正在运行...输出"+i);
        }
    }
}
